//
//  FlutterWxResponseHandler.h
//  Pods-Runner
//
//  Created by lu on 9/11/2019.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#import "WXApi.h"
#import "WXApiObject.h"

NS_ASSUME_NONNULL_BEGIN

@protocol WXApiManagerDelegate <NSObject>

@optional

- (void)managerDidRecvMessageResponse:(SendMessageToWXResp *)response;

- (void)managerDidRecvAuthResponse:(SendAuthResp *)response;

- (void)managerDidRecvLaunchMiniProgram:(WXLaunchMiniProgramResp *)response;

- (void)managerDidRecvPaymentResponse:(PayResp *)response;

- (void)managerDidRecvGetMessageReq:(GetMessageFromWXReq *)request;

- (void)managerDidRecvShowMessageReq:(ShowMessageFromWXReq *)request;

- (void)managerDidRecvLaunchFromWXReq:(LaunchFromWXReq *)request;

@end

@interface FlutterWxResponseHandler : NSObject<WXApiDelegate>

@property(nonatomic, assign) id <WXApiManagerDelegate> delegate;

+ (instancetype)defaultManager;

- (void)setMethodChannel:(FlutterMethodChannel *)flutterMethodChannel;

@end

NS_ASSUME_NONNULL_END
